-- GENERATED SPELL FOR [Zanzil Naga] --


function spell0_1491(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1491', 10328, 1)
end

function spell1_1491(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1491', 5348, 1)
end

function Sorts_1491(pUnit, Event)
local choix_sorts_1491 = math.random(0, 1)
if choix_sorts_1491 == 0 then
pUnit:RegisterEvent('spell0_1491', 1, 1)
end
if choix_sorts_1491 == 1 then
pUnit:RegisterEvent('spell1_1491', 1, 1)
end
end

function mob1491_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1491', math.random(1500, 3000), 1)
end

function mob1491_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1491_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1491_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1491, 1, 'mob1491_Action')
RegisterUnitEvent(1491, 2, 'mob1491_Leave')
RegisterUnitEvent(1491, 3, 'mob1491_Kill')
RegisterUnitEvent(1491, 4, 'mob1491_Die')
